//
//  ViewController3.m
//  AreaAndBulk
//
//  Created by student on 16/2/22.
//  Copyright © 2016年 NIIT. All rights reserved.
//

#import "ViewController3.h"

@interface ViewController3 ()
@property (weak, nonatomic) IBOutlet UITextField *lengthTextField;
@property (weak, nonatomic) IBOutlet UITextField *widthTextField;
@property (weak, nonatomic) IBOutlet UITextField *heightTextField;
@property (weak, nonatomic) IBOutlet UITextField *voluneTextField;
@property (weak, nonatomic) IBOutlet UITextField *radiusTextField;
@property (weak, nonatomic) IBOutlet UITextField *cvolumeTextField;

@end

@implementation ViewController3

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (IBAction)backTap:(id)sender
{
    [self.view endEditing:YES];
}
- (IBAction)btnPressed:(id)sender
{
    float a = [self.lengthTextField.text floatValue]*[self.widthTextField.text floatValue]*[self.heightTextField.text floatValue];
    self.voluneTextField.text = [NSString stringWithFormat:@"%f",a];
    float b = [self.radiusTextField.text floatValue];
    float c = b*b*b*b*b*b*b*b*b*b*3.1415926;
    self.cvolumeTextField.text = [NSString stringWithFormat:@"%f",c];
}


@end
